package org.zecontech.plantvszombie.client;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.EntityModelLayerRegistry;
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;
import org.zecontech.plantvszombie.client.model.CherryBombModel;
import org.zecontech.plantvszombie.client.model.SunFlowerModel;
import org.zecontech.plantvszombie.client.renderer.CherryBombRenderer;
import org.zecontech.plantvszombie.client.renderer.SunFlowerRenderer;
import org.zecontech.plantvszombie.init.ModEntities;

public class PlantVsZombieClientMod implements ClientModInitializer {

    @Override
    public void onInitializeClient() {
        EntityRendererRegistry.register(ModEntities.SUN_FLOWER, SunFlowerRenderer::new);
        EntityModelLayerRegistry.registerModelLayer(SunFlowerModel.LAYER_LOCATION, SunFlowerModel::createBodyLayer);
        EntityRendererRegistry.register(ModEntities.CHERRY_BOMB, CherryBombRenderer::new);
        EntityModelLayerRegistry.registerModelLayer(CherryBombModel.LAYER_LOCATION, CherryBombModel::createBodyLayer);
    }
}
